/*
 * @Author: Leander 
 * @Date: 2019-03-02 01:49:59 
 * @Last Modified by: Leander
 * @Last Modified time: 2019-03-20 15:23:20
 */

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

//导入样式
import 'element-ui/lib/theme-chalk/index.css'

import Vue from 'vue'
import App from './App'
import router from './router'
//导入element组件
import ElementUI from 'element-ui'
//导入路由
import VueRouter from 'vue-router'
//引入状态管理
import store from './store'
//导入请求框架
import api from './api'
import 'video.js/dist/video-js.css'

Vue.config.productionTip = false
//使用element-ui
Vue.use(ElementUI)
//使用api
Vue.use(api)
//使用vuerouter
Vue.use(VueRouter)
//扩展vuerouter
VueRouter.prototype.goBack = function () {
  this.isBack = true
  window.history.go(-1)
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // store,
  components: { App },
  template: '<App/>'
})
